﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace KontoraME
{
    public class Body
    {
        protected int bodyId;
        protected Point point;
        protected Size size;
        protected int bodyType;

        public int BodyId
        {
            get { return bodyId; }
            set { bodyId = value; }
        }
        public Point Point
        {
            get { return point; }
            set { point = value; }
        }
        public Size Size
        {
            get { return size; }
            set { size = value; }
        }
        public int BodyType
        {
            get { return bodyType; }
            set { bodyType = value; }
        }
        public Body(int id, Point p, Size s, int type) 
        {
            this.BodyId = id;
            this.Point = p;
            this.Size = s;
            this.bodyType = type;
        }
    }
    public class MoveableBody : Body 
    {
        private Rectangle bornRect;
        private Rectangle moveableRect;

        public Rectangle MoveableRect
        {
            get { return moveableRect; }
            set { moveableRect = value; }
        }

        public Rectangle BornRect
        {
            get { return bornRect; }
            set { bornRect = value; }
        }

        public MoveableBody(int id, Point p,
            Size s, int type, Rectangle born, Rectangle move):base(id, p, s, type)
        {
            bornRect = born;
            moveableRect = move;
        }
    }
}
